package com.zhilei.controller;

import com.zhilei.base.BaseInfoProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 志磊
 * @serial 2024-09-19
 */
@RestController
@RequestMapping("f")
@Slf4j
public class HelloController extends BaseInfoProperties {

    @Value("${server.port}")
    private String port;

    @GetMapping("/hello")
    public String hello() {
        return "hello file-service, port: " + port;
    }
}
